package detect;

import interfaces.Detect;

import java.util.HashMap;
import java.util.Map;

import util.CatchLanguage;

public class DetectLanguagePython implements Detect {

	@Override
	public void getInfo(Map<String, Object> obj) {
		String languageName = "Python";
		String[] footerWords = { "Python", "Pelican", "Django", "TurboGears",
				"Tornado" };
		String[] cookieNames = { "csrftoken", "_xsrf", "sea-surf" };

		Map<String, String> detectHeaderMap = new HashMap<String, String>();
		detectHeaderMap.put("Server",
				"TornadoServer, gunicorn, DecosetterServer, Zope");

		CatchLanguage.catchLanguage(detectHeaderMap, cookieNames, footerWords,
				obj, languageName);
	}
}
